import java.awt.Graphics;
import javax.swing.JPanel;

public class Figura3 extends JPanel {

    public void paintComponent( Graphics g)
    {
        super.paintComponent(g);
        
        int anchura = getWidth();
        int altura = getHeight();
        
        int i=0;
        int x2=15;
        
        while(x2<=getWidth()){
            
            g.drawLine(0,x2-15,x2,altura);
            x2+=15;
            
            
        }
       
    }
    
}
